package com.fangyi.yunmusic.mapper;

import com.fangyi.yunmusic.pojo.Comment;
import com.fangyi.yunmusic.utils.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper extends MyMapper<Comment> {
    List<Comment> selectSongComment(@Param("songId") String songId);
    List<Comment> selectPlaylistComment(@Param("playlistId") String playlistId);
    List<Comment> selectAlbumComment(@Param("albumId") String albumId);
    int insert(Comment comment);

    int insertSelective(Comment comment);

    int deleteByPrimaryKey(Object o);

    int updateByPrimaryKey(Comment comment);

    int updateByPrimaryKeySelective(Comment comment);
}